package com.shop.service.impl;

import com.shop.dao.SysCodeDao;
import com.shop.domain.Page;
import com.shop.domain.SysCode;
import com.shop.service.SysCodeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * SysCodeServiceImpl
 * Created by heqianqian on 2017/7/12.
 */
@Service
public class SysCodeServiceImpl implements SysCodeService<SysCode> {

    @Resource
    private SysCodeDao<SysCode> sysCodeDao;

    @Override
    public List findPage(Page page) {
        return null;
    }

    @Override
    @SuppressWarnings("unchecked")
    public List<SysCode> find(Map map) {
        return sysCodeDao.find(map);
    }

    @Override
    public SysCode get(Serializable id) {
        return null;
    }

    @Override
    public void insert(SysCode T) {

    }

    @Override
    public void update(SysCode T) {

    }

    @Override
    public void deleteById(Serializable id) {

    }

    @Override
    public void delete(Serializable[] ids) {

    }

    @Override
    public List<SysCode> getCtypeList() {
        Map<String, String> paraMap = new HashMap<>();
        paraMap.put("parentId", "0104");//0104是附件表的分类
        return sysCodeDao.find(paraMap);
    }
}
